package com.flower.pojo;

import java.sql.Date;


/**
 * 商品
 */
public class Product {
	private int pid;
	private String pname;
	private double market_price;
	private double shop_price;
	private String pimage;
	private String pmaterial;
	private Date pdate;
	private int is_hot;
	private String pdesc;
	private int pflag; // 是否上架
	private int pbargain; // 是否为特价商品
	private int num; // 库存量
	private Category category;

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public double getMarket_price() {
		return market_price;
	}

	public void setMarket_price(double market_price) {
		this.market_price = market_price;
	}

	public double getShop_price() {
		return shop_price;
	}

	public void setShop_price(double shop_price) {
		this.shop_price = shop_price;
	}

	public String getPimage() {
		return pimage;
	}

	public void setPimage(String pimage) {
		this.pimage = pimage;
	}

	public String getPmaterial() {
		return pmaterial;
	}

	public void setPmaterial(String pmaterial) {
		this.pmaterial = pmaterial;
	}

	public Date getPdate() {
		return pdate;
	}

	public void setPdate(Date pdate) {
		this.pdate = pdate;
	}

	public int getIs_hot() {
		return is_hot;
	}

	public void setIs_hot(int is_hot) {
		this.is_hot = is_hot;
	}

	public String getPdesc() {
		return pdesc;
	}

	public void setPdesc(String pdesc) {
		this.pdesc = pdesc;
	}

	public int getPflag() {
		return pflag;
	}

	public void setPflag(int pflag) {
		this.pflag = pflag;
	}

	public int getPbargain() {
		return pbargain;
	}

	public void setPbargain(int pbargain) {
		this.pbargain = pbargain;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	@Override
	public String toString() {
		return "Product [pid=" + pid + ", pname=" + pname + ", market_price=" + market_price + ", shop_price="
				+ shop_price + ", pimage=" + pimage + ", pmaterial=" + pmaterial + ", pdate=" + pdate + ", is_hot="
				+ is_hot + ", pdesc=" + pdesc + ", pflag=" + pflag + ", pbargain=" + pbargain + ", num=" + num
				+ ", category=" + category + "]";
	}

	

}
